package com.threeti.mecool.core.domain.model.sellinto;

/** 卖进执行状态*/
public enum SellIntoExecutionStatus {
  /** 执行中 */
  IN_PROGRESS,
  
  /** 下周可执行 */
  CAN_BE_DONE_NEXT_WEEK;
  
  public static SellIntoExecutionStatus valueOf(int status) {
    if (status == SellIntoExecutionStatus.IN_PROGRESS.ordinal()) {
      return SellIntoExecutionStatus.valueOf(SellIntoExecutionStatus.IN_PROGRESS.name());
    }else {
      return SellIntoExecutionStatus.valueOf(SellIntoExecutionStatus.CAN_BE_DONE_NEXT_WEEK.name());
    }
  }
}
